import React from 'react';
import { connect } from 'dva';
import styles from './Weixin.css';
import MainLayout from '../components/MainLayout/MainLayout';
import WeixinComponent from '../components/Weixin/Weixin'

function Weixin(props) {

  return (
  <MainLayout location={ props.location } params={props.params}>
    <div className={styles.normal}>
      <WeixinComponent {...props}/>
    </div>
  </MainLayout>
  );
}

function mapStateToProps(state) {
  return {
    weixin: state.weixin
  };
}

export default connect(mapStateToProps)(Weixin);
